--[[
投射物伤害
]]
local mt = ac.skill['死亡缠绕']
mt.art = [[ReplaceableTextures\CommandButtons\BTNStormBolt.blp]]
mt.targettype = "物体"
mt.range = 800
mt.cool = 6
mt.damage = 100         --造成伤害
mt.damage_type = '魔法' --伤害类型

--弹道模型
mt.missil_art = [[Abilities\Spells\Undead\DeathCoil\DeathCoilMissile.mdl]]
mt.missil_arc = 0       --弹道弧度
mt.missil_speed = 1100   --弹道速度


function mt:on_cast_shot()
    local hero = self.owner
    local target = self.target
    local start = self.start or hero:get_launch_point()
    ac.mover('target'){
        start = start,
        target = target,
        model = self.missil_art,
        arc = self.missil_arc,
        speed = self.missil_speed,
        on_run = function()
            if self.damage>0 then
                hero:create_damage(target,self.damage,'魔法')
            end
            self:notify('on_run',target)
        end
    }
end

